<!--
 * @Author: wangshiyang
 * @Date: 2023-06-16 16:31:18
 * @LastEditors: wangshiyang
 * @LastEditTime: 2023-06-16 16:37:32
 * @Description: 请填写简介
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link href="https://api.mapbox.com/mapbox-gl-js/v2.9.1/mapbox-gl.css" rel="stylesheet">
    <script src="https://api.mapbox.com/mapbox-gl-js/v2.9.1/mapbox-gl.js"></script>
    <script src='https://unpkg.com/@antv/l7'></script>
    <style>
        html,
        body {
            overflow: hidden;
            margin: 0;
        }

        #map {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 100%;
        }
    </style>
</head>

<body>
    <div id="map">

    </div>
    <script>
        const token = 'pk.eyJ1IjoiY2hlbmdiZW5jaGFvIiwiYSI6ImNsODU3aGRiODA0Y2UzcHBzZmFlcmdqZ2sifQ.8k59W_pB_Riwe6o-MneRlA'
        var { Scene, Mapbox } = L7;
        const scene = new Scene({
            id: "map",
            map: new Mapbox({
                style: "dark",
                center: [114.30, 30.50],
                zoom: 13,
                // pitch: 90,
                token,
                projection: "globe"
            })
        })

        //获取mapbox
        const map = scene.map;
        map.on("style.load", () => {
            map.setFog({})
        })


    </script>
</body>

</html>